package leetcode.D200.T114;

import util.TreeNode;
import util.TreeUtil;

public class M114 {
    public static void main(String[] args) {
        TreeNode root = TreeUtil.deserialize("[1,null,2,3]");
        TreeUtil.printPreorder(root);
        TreeUtil.printLevel(root);
        new Solution().flatten(root);
        TreeUtil.printPreorder(root);
        TreeUtil.printLevel(root);
    }
}
